﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace b7.Models
{
    public class User
    {
        [Key]
        public int UserId { get; set; }

        [Display(Name = "ten dang nhap")]
        [Required(ErrorMessage = "chua nhap ten dang nhap")]
        public string UserName { get; set; }

        [Display(Name = "mat khau dang nhap")]
        [DataType(DataType.Password)]
        [Required(ErrorMessage = "chua nhap mat khau")]
        public string Password { get; set; }
    }
}